#Include <ScreenCapture.au3>
#Include <Function For Thumbnail View.au3>


AutoItSetOption("MustDeclareVars", 1)   ;Variables must be pre-declared.
Dim Const $sLogFileName = "Thumbnail view1.Log"   ;Log file named(Same with .au3 file name).
Common_WriteCurrentFunctionNameToTempTXT($sThumbanilViewFunctionName)

Dim $bDebug = False

If Not $bDebug Then
		
	ThumbnailView1_1_1()
	ThumbnailView1_1_2()
	ThumbnailView1_1_3()
	ThumbnailView3_1_1()
	ThumbnailView3_2_3()
	ThumbnailView4_2_1()
	ThumbnailView4_2_2()
	If Not $bPageViewType Then
		ThumbnailView4_2_3()
	EndIf
	ThumbnailView4_3_4()
	ThumbnailView4_4_1()
	ThumbnailView4_4_3()
	ThumbnailView4_4_4()
	ThumbnailView6_1_1()

	ThumbnailView6_1_3()
	ThumbnailView6_1_4()
	ThumbnailView8_1_1() 
	ThumbnailView8_1_2()
	If Not $bPageViewType Then
		ThumbnailView8_2_5()
	EndIf	
	ThumbnailView9_1_1()
	ThumbnailView9_1_2()
	ThumbnailView9_1_7()
	ThumbnailView9_2_1()
	ThumbnailView9_2_2()
	ThumbnailView9_2_3()
	ThumbnailView9_2_5()
	ThumbnailView9_4_1()
	ThumbnailView9_4_2()
	ThumbnailView9_4_4()
	ThumbnailView9_4_5()
	ThumbnailView9_4_8()
	ThumbnailView9_6_2()
	ThumbnailView9_6_4()
	ThumbnailView9_6_6()
	ThumbnailView9_7_1()
	ThumbnailView9_7_2()
	ThumbnailView9_7_3()
	ThumbnailView10_1_1()
	ThumbnailView10_2_2()
	ThumbnailView10_2_3()
	ThumbnailView10_2_4()
	ThumbnailView10_2_5()
	ThumbnailView10_2_6()
	ThumbnailView10_2_7()
	ThumbnailView10_3_1()
	ThumbnailView10_3_4()
	ThumbnailView10_4_1()
	If Not $bPageViewType Then
		ThumbnailView10_4_3()
	EndIf	
	ThumbnailView11_1_1()
	ThumbnailView11_1_2()
	ThumbnailView11_1_4()
	ThumbnailView11_1_8()
	ThumbnailView11_1_10()
	ThumbnailView11_1_11()
	ThumbnailView11_1_12()
	ThumbnailView11_2_1()
	ThumbnailView11_2_2()
	ThumbnailView11_2_3()
	ThumbnailView11_2_4()
	ThumbnailView11_3_1()
	ThumbnailView11_3_2()
	ThumbnailView11_3_3()
	ThumbnailView11_4_1()
	ThumbnailView11_4_2()
	ThumbnailView11_4_3()
	ThumbnailView11_4_4()
	ThumbnailView11_4_5()
	ThumbnailView11_4_6()
	ThumbnailView11_4_7()
	ThumbnailView11_4_8()
	ThumbnailView11_4_9()
	ThumbnailView11_4_10()
	ThumbnailView11_4_11()
	ThumbnailView11_4_12()
	ThumbnailView11_4_13()
	ThumbnailView11_5_1()
	ThumbnailView11_5_2()
	ThumbnailView11_5_3()
	ThumbnailView11_5_4()
	ThumbnailView11_5_5()
	ThumbnailView11_5_6()
	ThumbnailView11_6_1()
	ThumbnailView11_6_2()
	ThumbnailView11_6_4()
	ThumbnailView11_6_7()
	ThumbnailView11_6_8()
	ThumbnailView11_6_9()
	ThumbnailView12_1_1()
	ThumbnailView12_1_2()
	ThumbnailView12_1_4()
	ThumbnailView12_1_5()
	ThumbnailView12_1_6()
	ThumbnailView12_1_7()
	ThumbnailView12_1_8()
	ThumbnailView12_1_9()
	ThumbnailView12_1_10()
	ThumbnailView12_1_13()
	ThumbnailView12_1_14()
	ThumbnailView12_1_15()
	ThumbnailView12_1_16()
	ThumbnailView12_1_17()
	ThumbnailView12_1_18()
	If Not $bPageViewType Then
		ThumbnailView12_2_1()
		ThumbnailView12_2_2()
		ThumbnailView12_2_3()
		ThumbnailView12_2_4()
		ThumbnailView12_3_2()
		ThumbnailView12_4_2()
	EndIf
	ThumbnailView12_3_1()
	ThumbnailView12_3_3()
	ThumbnailView12_4_1()
	ThumbnailView13_1_1()
	ThumbnailView13_2_2()
	ThumbnailView13_2_3()
	ThumbnailView13_2_4()
	ThumbnailView13_2_5()
	ThumbnailView13_2_6()
	ThumbnailView13_2_7()
	ThumbnailView13_2_8()
	ThumbnailView13_2_9()
	ThumbnailView13_2_10()
	ThumbnailView13_5_1()
	ThumbnailView13_5_3()
	ThumbnailView13_5_4()
	ThumbnailView13_5_5()
	ThumbnailView13_5_6()
	ThumbnailView13_5_9()
	ThumbnailView13_5_10()
	ThumbnailView13_5_11()
	ThumbnailView13_5_12()
	ThumbnailView13_5_13()
	ThumbnailView14_1_1()
	ThumbnailView14_2_2()
	ThumbnailView14_2_3()
	ThumbnailView14_2_6()
	ThumbnailView14_3_1()
	ThumbnailView14_3_2()
	ThumbnailView14_3_3()
	ThumbnailView14_3_4()
	ThumbnailView14_5_1()
EndIf

CloseOpenedExcel($oExcel) 
Func ThumbnailView1_1_1()
	Local $TestCaseID = "1.1.1"   
	Local $sCusMsg = '(It should shown all file thumbnail in FE Sample folder, No files is selected)'
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)  ;Test case level.
	Local $sCaptureImage = $TestCaseID & '.jpg' 
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2  
	EndIf 
	Common_Del_DB()  
	Common_InitializeStatus()  
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle ,$sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func ThumbnailView1_1_2()
	Local $TestCaseID = "1.1.2" 
	Local $sCusMsg = ''
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber) 
	Local $sCaptureImage = $TestCaseID & '.jpg'    
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB()  
	Common_InitializeStatus()  
	InitializeStatusForThumbnail()  
	
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = ' Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		

	WinActivate($hPMHandle) 
	OpenThumbnailSizeMenu()    ; Open "Thumbnail Size" item from "View" menu.
	
	$sFunctionName = 'WinGetHandle($sMenuCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sMenuCtrInfo),$sFunctionName)   
	Local $hMenu = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  	
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
EndFunc	
	
Func ThumbnailView1_1_3()
	Local $TestCaseID = "1.1.3"
	Local $sCusMsg = ''
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)
	Local $sCaptureImage = $TestCaseID & '.jpg'   
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	Common_SleepTime(1)
	
	$sFunctionName = 'UnselectDateColumnInListView($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, UnselectDateColumnInListView($hPMHandle),$sFunctionName)   ;Click mouse right button in coulmn then unselect "Date Modified" and "Date create" in list view.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath, $sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  	
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0	
EndFunc

Func ThumbnailView3_1_1()
	Local $TestCaseID = "3.1.1"
	Local $sCusMsg = 'It should dispalt all smapels in "My pagemanager" folder'
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)
	Local $sCaptureImage = $TestCaseID & '.jpg'   
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB()  
	Common_InitializeStatus()  
	InitializeStatusForThumbnail()  
	Local $hPMHandle = WinGetHandle(Common_Run_PageManager())
	
	$sFunctionName = 'Common_ChooseMyPagemanagerFolder($hPMHandle)'
	
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_ChooseMyPagemanagerFolder($hPMHandle),$sFunctionName)    ;Switch to my pagemanager folder.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		

	WinActivate($hPMHandle) 
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""   
		EndIf
	EndIf

	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)     ;Write the log file(Fail) with the test step in STD.
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0   ; Fail	
EndFunc

Func ThumbnailView3_2_3()
	Local $TestCaseID = "3.2.3"
	Local $sCusMsg = ''
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)
	Local $sCaptureImage = $TestCaseID & '.jpg'    
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $sFunctionName
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB()  
	Common_InitializeStatus()  
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & $sProtectPDFFile, $sFunctionFolderPath, 1)   ;Copy a protect PDF file to sFunctionFolderPath folder.
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)' 
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1  
		Else
			$sErrorFunction = ""    ;Test case step and check point.
		EndIf
	EndIf
	  	;Read the strings from excel.
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)     ;Write the log file(Fail) with the test step in STD.
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0	
EndFunc

Func ThumbnailView4_2_1()
	Local $TestCaseID = "4.2.1"
	Local $sCusMsg = 'It should dispaly stack files in lsit view'
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)
	Local $sCaptureImage = $TestCaseID & '.jpg'   
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf 
	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo),$sFunctionName)   ;Function:Click stack button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	Common_SleepTime(1)
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(1)
	
	$sFunctionName = 'UnselectDateColumnInListView($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, UnselectDateColumnInListView($hPMHandle),$sFunctionName)   ;Click mouse right button in coulmn then unselect "Date Modified" and "Date create" in list view.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0		
EndFunc

Func ThumbnailView4_2_2()
	Local $TestCaseID = "4.2.2"
	Local $sCusMsg = 'It should display unstack files in list view'
	Local $sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber) 
	Local $sCaptureImage = $TestCaseID & '.jpg' 
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo),$sFunctionName)   ;Function:Click stack button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	Common_SleepTime(1)
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(1)
	
	$sFunctionName = 'UnselectDateColumnInListView($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, UnselectDateColumnInListView($hPMHandle),$sFunctionName)   ;Click mouse right button in coulmn then unselect "Date Modified" and "Date create" in list view.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	Common_SleepTime(1)
	MouseClick("left",199,108)   ;CLick stack icon in list view.
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0   
EndFunc

Func ThumbnailView4_2_3()
	Local $TestCaseID = "4.2.3"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & $sOCRSampleFile, $sFunctionFolderPath, 1)   ;Cony a OCR sample to thumbnail folder in disk C.
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName= 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	_GUICtrlListView_ClickItem($hThumbnailView, 0)   ; Select "OCR.jpg".
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo),$sFunctionName)   ;Click OCR button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(3)
	
	If Not $bPageViewType Then
		$sFunctionName = 'WinWaitActive($sOCRDialogTitle, "", 5)'
		$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive($sOCRDialogTitle, "", 5),$sFunctionName)  
		Local $sReturn = $array[0]
		$bIsExecuteFunction = $array[1]
		If $array[2] <> "" Then
			$sErrorFunction = $array[2]
		EndIf	
		
		$sFunctionName = 'WinWaitClose($sOCRDialogTitle, "", 5)'
		$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitClose($sOCRDialogTitle, "", 5),$sFunctionName)  
		Local $sReturn = $array[0]
		$bIsExecuteFunction = $array[1]
		If $array[2] <> "" Then
			$sErrorFunction = $array[2]
		EndIf
	EndIf
	
	Common_SleepTime(15)
	
	If $bPageViewType Then
		WinActivate($sPageViewerMessageTitle)
		send("!f")
		Sleep(300)
		Send("e")
		Common_SleepTime()
	EndIf
	
	WinActivate($hPMHandle) 
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(1)
	
	$sFunctionName = 'UnselectDateColumnInListView($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, UnselectDateColumnInListView($hPMHandle),$sFunctionName)   ;Click mouse right button in coulmn then unselect "Date Modified" and "Date create" in list view.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView4_3_4()
	Local $TestCaseID = "4.3.4" 
	$sCusMsg = 'List view column order is "Stack" "File Name" "Size" "Image Information" "Type"'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	Sleep(1000)
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		If $sReturn[2] <> "" Then   ;Move the coulmn.
			MouseMove($sReturn[2] / 2.48, $sReturn[3] / 11.35)
			MouseDown("left")
			MouseMove($sReturn[2] / 1.48, $sReturn[3] / 11.35)
			MouseUp("left")	
		EndIf
		Common_SleepTime(1)
	EndIf
	
	$sFunctionName = 'UnselectDateColumnInListView($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, UnselectDateColumnInListView($hPMHandle),$sFunctionName)   ;Click mouse right button in coulmn then unselect "Date Modified" and "Date create" in list view.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView4_4_1()
	Local $TestCaseID = "4.4.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	Common_SleepTime(1)
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
		Common_SleepTime(1)
	EndIf
	
	$sFunctionName = 'WinGetHandle($sMenuCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sMenuCtrInfo),$sFunctionName)   
	Local $hMenu = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView4_4_3()
	Local $TestCaseID = "4.4.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	Common_SleepTime(1)
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	UnselectDateColumnInListView($hPMHandle)
	#cs
	If $bIsExecuteFunction Then
		; Check off all items in context menu.
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
		Common_SleepTime(1)		
		For $i = 0 to 1
			Send("{DOWN}")
		Next
		Send("{ENTER}")
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
		Common_SleepTime(1)		
		For $i = 0 to 2 
			Send("{DOWN}")
		Next
		Send("{ENTER}")
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
		Common_SleepTime(1)		
		For $i = 0 to 4 
			Send("{DOWN}")
		Next
		Send("{ENTER}")
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
		Common_SleepTime(1)		
		For $i = 0 to 5 
			Send("{DOWN}")
		Next
		Send("{ENTER}")
	EndIf
	#ce
	MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
	Common_SleepTime(1)		
	For $i = 0 to 2 
		Send("{DOWN}")
	Next
	Send("{ENTER}")
	MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
	Common_SleepTime(1)		
	For $i = 0 to 3
		Send("{DOWN}")
	Next
	Send("{ENTER}")
	MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)
	Common_SleepTime(1)		
	For $i = 0 to 4
		Send("{DOWN}")
	Next
	Send("{ENTER}")	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		Sleep(1000)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView4_4_4()
	Local $TestCaseID = "4.4.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo),$sFunctionName)   ;Function:Click switch to list view button in tool bar.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	Common_SleepTime(1)
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		; Check off all items in context menu.
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 11.35)	
		Common_SleepTime(1)
		Send("{UP}")
		Send("{ENTER}")
		Common_SleepTime(1)
		Send("{F5}")
		Common_SleepTime(1)
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		UnselectDateColumnInListView($hPMHandle)
		Common_SleepTime(1)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView6_1_1()
	Local $TestCaseID = "6.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(19)
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	If $bIsExecuteFunction Then
		; MouseClick right and minim size PM window.
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 100.35)	
		Common_SleepTime(1)
		Common_SleepTime(1)
		Send("n")
		Common_SleepTime(2)
	EndIf

	If $bIsExecuteFunction Then
		If WinGetState($hPMHandle) == 23 Then
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1 
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView6_1_2()
	Local $TestCaseID = "6.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView6_1_3()
	Local $TestCaseID = "6.1.3"  
	$sCusMsg = 'It should show vertical scroller bar'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	If $bIsExecuteFunction Then
		MouseClick("right",$sReturn[2] / 2.48, $sReturn[3] / 100.35)	
		Common_SleepTime(1)
		Common_SleepTime(1)
		Send("r")   ;Resize the PM window
		Common_SleepTime(1)
		MouseMove(0, 0)   ;move mouse
		MouseDown("left")
		MouseMove(500, 500)
		MouseUp("left")	  ;move mouse
		Common_SleepTime(3)		
	EndIf

	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView6_1_4()
	Local $TestCaseID = "6.1.4" 
	$sCusMsg = 'Thumbail should show small'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'WinGetPos($hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetPos($hPMHandle),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	

	$sFunctionName = 'Common_ControlGetPos($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_ControlGetPos($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   ;Get PM postion and size.
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		;Resize the thumbnial.
		MouseMove($sReturn[0]-7, $sReturn[1])
		MouseDown("left")
		MouseMove($sReturn[0] + $sReturn[2]/2, $sReturn[1])
		MouseUp("left")
		Common_SleepTime(3)
	EndIf

	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView8_1_1()
	Local $TestCaseID = "8.1.1"  
	$sCusMsg = 'Page view button is dimmed'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo),$sFunctionName)   
	Local $hToolBar = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView8_1_2()
	Local $TestCaseID = "8.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Send("!" & $sViewMenuHotKey)
	Sleep(500)	
	Send('w')
	Sleep(1000)

	$sFunctionName = 'WinGetHandle($sMenuCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sMenuCtrInfo),$sFunctionName)   
	Local $hMenu = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView8_2_5()
	Local $TestCaseID = "8.2.5"
	$sCusMsg = 'The image should is shown file thumbnail'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	_GUICtrlListView_ClickItem($hThumbnailView, 1)   ; Select a fiile.
	Common_SleepTime(1)
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)'   ;Click Page View Button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(3)
	Common_Close_PM($hPMHandle)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_1_1()
	Local $TestCaseID = "9.1.1" 
	$sCusMsg = 'Save as button is dimmed'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo),$sFunctionName)   
	Local $hToolBar = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_1_2()
	Local $TestCaseID = "9.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		Send("!" & $sFileMenuHotKey)   ;Open File Menu.
		Sleep(1000)		
	EndIf
	
	$sFunctionName = 'WinGetHandle($sMenuCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sMenuCtrInfo),$sFunctionName)   
	Local $hMenu = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_1_7()
	Local $TestCaseID = "9.1.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left",True)   ; Select a avi fiile.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo),$sFunctionName)   
	Local $hToolBar = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf

	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_2_1()
	Local $TestCaseID = "9.2.1" 
	$sCusMsg = 'The image is save as dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1, "left",True)   ; Select a bmp file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_WinWaitSaveAsDlg()	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		ControlFocus("[CLASS:#32770]", "FolderView", 1)
		Common_SleepTime(1)
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hSaveAsDlg)
		WinActivate($sSavaAsDialogTitle_1)
		Send('{ESC}')   ;Close save as dialog title.
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')   ;Close save as dialog title.
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_2_2()
	Local $TestCaseID = "9.2.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1, "left",True)   ; Select a bmp file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)	
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sCancelButtonInSaveAsDlgCtrlInfo)'   ;Click cancel button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sCancelButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf		
	
	If $bIsExecuteFunction Then
		If WinActive($sSavaAsDialogTitle_1) Then
			$sErrorFunction = ""    
		Else
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1 
		EndIf	
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0  
EndFunc

Func ThumbnailView9_2_3()
	Local $TestCaseID = "9.2.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1, "left",True)   ; Select a bmp file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_WinWaitSaveAsDlg()
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & "SaveAsFileName_1"),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sTestResultPath & $TestCaseID),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView", $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)

	If $bIsExecuteFunction Then
		Local $sTitle = WinGetTitle($hPMHandle)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sBMP_Format, $sCorrectResultPath & $TestCaseID & $sBMP_Format)  	
		If $bCompareFile And  StringCompare($sTitle,$sPMTitleAtPerformResultFolder) = 0 Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)				
			Return 1                                    
		ElseIf  $bCompareFile And StringCompare($sTitle,'Presto! PageManager 9 - C:\Thumbnail view\Perform Result') = 0 Then
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1  
		ElseIf  $bCompareFile And StringCompare($sTitle,'Presto! PageManager 9  - C:\Thumbnail view\Perform Result') = 0 Then
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1 
		ElseIf  $bCompareFile And StringInStr($sTitle,'C:\Thumbnail view\Perform Result') = 0 Then
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1  
		Else		
			If $sTitle = $sPMTitleAtPerformResultFolder Then
				$sErrorFunction = ""  
			Else
				$sErrorFunction = ""  
				$sErrorFunction = $sErrorFunction  & '(The Judge in Script:)The PM titile is "' & $sTitle
			EndIf
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_2_4()
	Local $TestCaseID = "9.2.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sFEFolderPath & 'JPG.jpg', $sFunctionFolderPath, 1)
	FileCopy($sFEFolderPath & 'PCT.pct', $sFunctionFolderPath, 1)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 0 , "left", True)   
		ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)   ; Select two file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSaveAllFilesAs, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSaveAllFilesAs)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Sava first file.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & "$sSaveAsFileName_2"),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText("[CLASS:#32770]", "FolderView", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sTestResultPath & $TestCaseID & '_1'),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSaveAllFilesAs, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSaveAllFilesAs, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView", $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(5)
	
	;Sava second file.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($sSavaAsDialogTitle_2, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & "$sSaveAsFileName_2"),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText("[CLASS:#32770]", "FolderView", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sTestResultPath & $TestCaseID & '_2'),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSavaAsDialogTitle_2, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_2, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView", $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	Common_SleepTime(2)

	If $bIsExecuteFunction Then
		Local $sTitle = WinGetTitle($hPMHandle)
		Local $bCompareFile1 = Common_CompareFile($sTestResultPath & $TestCaseID & '_1' & $sJPG_Format, $sCorrectResultPath & $TestCaseID & '_1' & $sJPG_Format)  	
		Local $bCompareFile2 = Common_CompareFile($sTestResultPath & $TestCaseID & '_2' & $sJPG_Format, $sCorrectResultPath & $TestCaseID & '_2' & $sJPG_Format) 
		If $bCompareFile1 And $bCompareFile2 Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_2_5()
	Local $TestCaseID = "9.2.5"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail() 
	FileCopy($sFEFolderPath & 'JPG.jpg', $sFunctionFolderPath, 1)
	FileCopy($sFEFolderPath & 'PCT.pct', $sFunctionFolderPath, 1)	
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 0 , "left", True)   
		Sleep(1500)
		ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1)   ; Select two file and AVI file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSaveAllFilesAs, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSaveAllFilesAs)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Sava first file.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & "$sSaveAsFileName_2"),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sTestResultPath & $TestCaseID),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSaveAllFilesAs, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSaveAllFilesAs, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($sSaveAllFilesAs, "", $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)

	If $bIsExecuteFunction Then
		Local $sTitle = WinGetTitle($hPMHandle)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  	
		If $bCompareFile And StringCompare($sTitle,$sPMTitleAtPerformResultFolder) = 0 Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		ElseIf $bCompareFile And StringCompare($sTitle,'Presto! PageManager 9 Pro - C:\Thumbnail view\Perform Result') = 0 Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1  	
		ElseIf $bCompareFile And StringCompare($sTitle,'Presto! PageManager 9  - C:\Thumbnail view\Perform Result') = 0 Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1  			
		Else
			If $sTitle = $sPMTitleAtPerformResultFolder Then
				$sErrorFunction = ""  
			Else
				$sErrorFunction = ""  
				$sErrorFunction = $sErrorFunction  & '(The Judge in Script:)The PM titile is "' & $sTitle
			EndIf
		EndIf
	EndIf
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_4_1()
	Local $TestCaseID = "9.4.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, ""),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,""),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView", $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sAlertMessage_EmptyFileNameForSaveAsDlgTitle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sAlertMessage_EmptyFileNameForSaveAsDlgTitle),$sFunctionName)   
	Local $hAlertDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		;Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) 

		If StringInStr(WinGetText(""),'You must type a name.') Then	
			;Close opened dialog.
			Send('{ESC}')
			WinActivate($sSavaAsDialogTitle_1)
			Send('{ESC}')
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf	
	
	;Close opened dialog.
	Send('{ESC}')
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')
	
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_4_2()
	Local $TestCaseID = "9.4.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 10)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 10),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, "<>/"),$sFunctionName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,'"<>/;*&^"'),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sAlertMessage_IllegalFileNameForSaveAsDlgTitle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sAlertMessage_IllegalFileNameForSaveAsDlgTitle),$sFunctionName)   
	Local $hAlertDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hAlertDlg)
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) 
		
		;Close opened dialog.

		If StringInStr(WinGetText(""),'A file name cannot contain any of the following characters:') Then	
			Send('{ESC}')
			WinActivate($sSavaAsDialogTitle_1)
			Send('{ESC}')
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf	
	
	;Close opened dialog.
	Send('{ESC}')
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')
	
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_4_4()
	Local $TestCaseID = "9.4.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & $sReplaceSampleFile, $sFunctionFolderPath, 1)   ;Cony a jpg sample to thumbnail folder in disk C.
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select OCR sample file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & $sReplaceSampleFile)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sFunctionFolderPath & $sReplaceSampleFile),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sAlertMessage_FileNameExistForSaveAsDlgTitle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sAlertMessage_FileNameExistForSaveAsDlgTitle),$sFunctionName)   
	Local $hAlertDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlClick($sAlertMessage_ConfirmSaveAsDlgTitle, "", $sCancelButtonInConfirmSaveAsDlg)'   ;Click cancel button in confirm dialog.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($sAlertMessage_ConfirmSaveAsDlgTitle, "" , $sCancelButtonInConfirmSaveAsDlg),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		If WinActivate($sAlertMessage_ConfirmSaveAsDlgTitle) Then
			$sErrorFunction = 'Click "NO" button not closed alert message'
			$bIsExecuteFunction = False
		EndIf
	EndIf
	
	If $bIsExecuteFunction Then
		Local $bCompareFile = Common_CompareFile($sFunctionFolderPath & $sReplaceSampleFile, $sSpecialFolderPath & $sReplaceSampleFile) 
		
		;Close opened dialog.
		WinActivate($sSavaAsDialogTitle_1)
		Send('{ESC}')
		
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf	
	
	;Close opened dialog.
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')
	
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_4_5()
	Local $TestCaseID = "9.4.5" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & $sReplaceSampleFile, $sFunctionFolderPath, 1)   ;Cony a jpg sample to thumbnail folder in disk C.
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select OCR sample file.
		Common_SleepTime(2)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & $sReplaceSampleFile)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sFunctionFolderPath & $sReplaceSampleFile),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sAlertMessage_FileNameExistForSaveAsDlgTitle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle($sAlertMessage_FileNameExistForSaveAsDlgTitle),$sFunctionName)   
	Local $hAlertDlg = $array[0]
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,WinGetHandle("Confirm Save As")) 
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlClick($sAlertMessage_ConfirmSaveAsDlgTitle, "", $sYesButtonInConfirmSaveAsDlg)'   ;Click yes button in confirm dialog.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick('', "" , 'Button1'),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		If WinActivate($sAlertMessage_ConfirmSaveAsDlgTitle) Then
			$sErrorFunction = 'Click "Yes" button not closed alert message'
			$bIsExecuteFunction = False
		EndIf
	EndIf
	
	If $bIsExecuteFunction Then
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	
	If $bIsExecuteFunction Then
		Local $bCompareFile = Common_CompareFile($sFunctionFolderPath & $sReplaceSampleFile, $sCorrectResultPath & $sReplaceSampleFile) 
		
		;Close opened dialog.
		WinActivate($sSavaAsDialogTitle_1)
		Send('{ESC}')
		
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf	
	
	;Close opened dialog.
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')
	

	Common_WriteLog($sFaile& $sFailLogMsg   , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)  
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_4_8()
	Local $TestCaseID = "9.4.8" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select OCR sample file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sTestResultPath & $sSpecialFileName)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $sSpecialFileName),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	EndIf
	
	$sFunctionName = 'ControlClick($sSavaAsDialogTitle_1, "", $sSaveButtonInSaveAsDlgCtrlInfo)'   ;Click save button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo),$sFunctionName) 
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	If $bIsExecuteFunction Then
		Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,ControlGetHandle($hPMHandle, "", $sTreeViewCtrInfo)) 
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf
	
	If $bIsExecuteFunction Then
		Local $bCompareFile = Common_CompareFile($sTestResultPath & $sSpecialFileName & '.jpg', $sCorrectResultPath & '!@#$%&().jpg') 
		
		;Close opened dialog.
		WinActivate($sSavaAsDialogTitle_1)
		Send('{ESC}')

		If $bCompareFile Then	
			Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			$sErrorFunction = ""    
		EndIf
	EndIf	
	
	;Close opened dialog.
	WinActivate($sSavaAsDialogTitle_1)
	Send('{ESC}')
	
	  	
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_5_2()
	Local $TestCaseID = "9.5.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)'   ;Click Page View Button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(4)
	
	If $bPageViewType = 1 Then
		If Not Common_AddTextAnnotation() Then
			Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		;Add stamp annotation in page view.
		Common_AddAnnotation()
		Common_SleepTime()
		Send("!f")
		Common_SleepTime()
		Send("b")
		Common_SleepTime(2)
		ControlClick($sPageViewerMessageTitle,"",6)
		Common_SleepTime(2)
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
		Common_SleepTime(1)	
	EndIf	
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)	
	
	ControlClick($sSavaAsDialogTitle_1, "" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;;Click Save Button.
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 6, "left", True)   ;Select saved file.
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID&'_1.jpg', $hThumbnailView)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)   ;Click Page View Button.
	Common_SleepTime(10)
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID&'_2.jpg', $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID&'_1.jpg', $sCorrectResultPath & $TestCaseID&'_1.jpg') 
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID&'_2.jpg', $sCorrectResultPath & $TestCaseID&'_2.jpg') 
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		$sErrorFunction = ""    
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_5_4()
	Local $TestCaseID = "9.5.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	
	$sFunctionName = 'Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	$sFunctionName = 'Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	$sFunctionName = 'ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo),$sFunctionName)   
	Local $hThumbnailView = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
		Common_SleepTime(1)	
	EndIf
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)'   ;Click Page View Button.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(4)
	
	If $bPageViewType = 1 Then
		If Not Common_AddTextAnnotation() Then
			Common_WriteLog($sFaile &$sFailLogMsg, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		;Add stamp annotation in page view.
		Common_AddAnnotation()
		Common_SleepTime()
		Send("!f")
		Send("b")
		Common_SleepTime(2)
		ControlClick($sPageViewerMessageTitle,"",6)
		Common_SleepTime(2)
	EndIf
	
	If $bIsExecuteFunction Then
		_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
		Common_SleepTime(1)	
	EndIf	
	
	$sFunctionName = 'ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)'   ;Click Save as button in tool bar.
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo),$sFunctionName)   
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)	
	
	$sFunctionName = 'WinWaitActive($sSavaAsDialogTitle_1, "", 5)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinWaitActive("[CLASS:#32770]", "FolderView", 5),$sFunctionName)  
	Local $sReturn = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	Common_SleepTime(2)
	
	$sFunctionName = 'WinGetHandle($sSavaAsDialogTitle_1)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, WinGetHandle("[CLASS:#32770]", "FolderView"),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf
	
	;Set file name.
	$sFunctionName = 'Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo, $sFunctionFolderPath & $sSaveAsFileName_7)'
	$array = Common_ExecuteFunction($bIsExecuteFunction, ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sFunctionFolderPath & $sSaveAsFileName_7),$sFunctionName)   
	Local $hSaveAsDlg = $array[0]
	$bIsExecuteFunction = $array[1]
	If $array[2] <> "" Then
		$sErrorFunction = $array[2]
	EndIf	
	
	If $bIsExecuteFunction Then
		SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	EndIf
	
	SaveAnnotationOptionForSaveAs("Save to PM",$sSavaAsDialogTitle_1)   ;Set save annotatton to PM
	ControlClick($sSavaAsDialogTitle_1, "" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;;Click Save Button.
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 6, "left", True)   ;Select saved file.
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID&'_1.jpg', $hThumbnailView)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)   ;Click Page View Button.
	Common_SleepTime(10)
	Local $hPageView = ControlGetHandle($hPMHandle, "", $sPageViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID&'_2.jpg', $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID&'_1.jpg', $sCorrectResultPath & $TestCaseID&'_1.jpg') 
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID&'_2.jpg', $sCorrectResultPath & $TestCaseID&'_2.jpg') 
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		$sErrorFunction = ""    
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_5_6()
	Local $TestCaseID = "9.5.6"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)   ;Click page view button.
	Common_SleepTime(6)	
	If $bPageViewType = 1 Then
		If Not Common_AddTextAnnotation() Then
			Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else	
		;Add stamp annotation in page view.
		Common_AddAnnotation()
		Common_SleepTime()
		Send("!f")
		Send("b")
		Common_SleepTime(2)
		ControlClick($sPageViewerMessageTitle,"",6)
		Common_SleepTime(2)
	EndIf

	_GUICtrlListView_ClickItem($hThumbnailView, 6 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	

	ControlClick($hPMHandle, "", $sSaveAsButtonInToolbarCtrInfo)   ;Click save as button.
	Common_SleepTime(2)	
	WinWaitActive($sSavaAsDialogTitle_1, "", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle($sSavaAsDialogTitle_1)
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sFunctionFolderPath & $sSaveAsFileName_7)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	SaveAnnotationOptionForSaveAs("Not Save Annotation",$sSavaAsDialogTitle_1)   ;Set save annotatton to PM
	ControlClick($sSavaAsDialogTitle_1, "" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 6, "left", True)   ;Select saved file.
	Sleep(1000)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)   ;Click Page View Button.
	Common_SleepTime(10)
	If $bPageViewType = 1 Then
		Local $hPageView = ControlGetHandle($sPageViwerWindowClass, "", $PageViewerViewer)
	Else
		Local $hPageView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	EndIf
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hPageView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_6_2()
	Local $TestCaseID = "9.6.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	
	OpenSaveAsDialogFromMenu()
	WinWaitActive($sSavaAsDialogTitle_1, "", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle($sSavaAsDialogTitle_1)
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_6_4()
	Local $TestCaseID = "9.6.4"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   ;Select sample file.
	Common_SleepTime(1)	
	;OpenSaveAsDialogFromContextMenu()
	Send('s')
	Common_SleepTime(1)	
	Send('{ENTER}')
	WinWaitActive($sSavaAsDialogTitle_1, "", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle($sSavaAsDialogTitle_1)
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_6_6()
	Local $TestCaseID = "9.6.6"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	
	Send("^s")   ;Sebd ctrl + s
	WinWaitActive($sSavaAsDialogTitle_1, "", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle("[CLASS:#32770]", "FolderView")
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_7_1()
	Local $TestCaseID = "9.7.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	Send("^s")   ;Sebd ctrl + s
	WinWaitActive($sSavaAsDialogTitle_1, "", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle("[CLASS:#32770]", "FolderView")
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_7_2()
	Local $TestCaseID = "9.7.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sTileButtonInToolBarCtrlInfo)   ;Switc to tile view.
	Common_SleepTime(1)	
	Send("^s")   ;Sebd ctrl + s
	WinWaitActive("[CLASS:#32770]", "FolderView", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle("[CLASS:#32770]", "FolderView")
	ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick("[CLASS:#32770]", "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView9_7_3()
	Local $TestCaseID = "9.7.3" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "left", True)   ;Select sample file.
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)   ;Click page view button.
	Common_SleepTime(10)
	If $bPageViewType Then
		MouseClick('left', 437, 357, 2)
		Common_SleepTime(1)	
		Send("!f")
		Common_SleepTime(1)	
		Send("s")
		Common_SleepTime(2)
	Else
		OpenSaveAsDialogFromMenu()
	EndIf
	WinWaitActive("[CLASS:#32770]", "FolderView", 5)
	Common_SleepTime(2)
	Local $hSaveAsDlg = WinGetHandle("[CLASS:#32770]", "FolderView")
	If $bPageViewType Then
		ControlSetText($hSaveAsDlg, "", 1148,$sTestResultPath & $TestCaseID)   ;Set file name.
	Else	
		ControlSetText($hSaveAsDlg, "", $sFileNameEditBoxInSaveAsDlgCtrlInfo,$sTestResultPath & $TestCaseID)   ;Set file name.
	EndIf
	SetSaveAsFormat($sSavaAsDialogTitle_1, 'JPEG(*.JPG)')
	ControlClick($hSaveAsDlg, "FolderView" , $sSaveButtonInSaveAsDlgCtrlInfo)   ;Click Save Button.
	Common_SleepTime(4)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_1_1()
	Local $TestCaseID = "10.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Send("!" & $sEditMenuHotKey)
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_2()
	Local $TestCaseID = "10.2.2" 
	$sCusMsg = 'The file JPG name clolor should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   ;Select sample file.	
	Common_SleepTime(1)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_3()
	Local $TestCaseID = "10.2.3" 
	$sCusMsg = 'The file JPG name clolor should is black'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   ;Select sample file.	
	Common_SleepTime(2)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_SleepTime(2)
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   ;Select sample file.
	Common_SleepTime(1)
	Send($sSetFileChckContextMenuHotKey)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_4()
	Local $TestCaseID = "10.2.4"  
	$sCusMsg = 'All file name color should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	SelectAllFilesFromMenu()
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True)  
	Common_SleepTime(1)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_5()
	Local $TestCaseID = "10.2.5" 
	$sCusMsg = 'All file name color should is black'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	SelectAllFilesFromMenu()
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True)  
	Common_SleepTime(1)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 0 , "right", True)   
	Common_SleepTime(1)
	Send($sSetFileChckContextMenuHotKey)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_6()
	Local $TestCaseID = "10.2.6" 
	$sCusMsg = 'All file name color should is black'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True)  
	Common_SleepTime(1)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_SleepTime(1)
	SelectAllFilesFromMenu()
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   
	Common_SleepTime(1)
	Send($sSetFileChckContextMenuHotKey)	
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_2_7()
	Local $TestCaseID = "10.2.7" 
	$sCusMsg = 'All file name color should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True)  
	Common_SleepTime(1)	
	Send($sSetFileUnchckContextMenuHotKey)
	Common_SleepTime(1)
	SelectAllFilesFromMenu()
	_GUICtrlListView_ClickItem($hThumbnailView, 1 , "right", True)   
	Common_SleepTime(1)
	Send($sSetFileUnchckContextMenuHotKey)	
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_3_1()
	Local $TestCaseID = "10.3.1"
	$sCusMsg = 'The first file name color should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", True)  
	Common_SleepTime(1)	
	SetFileUnchekedFromEditMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_3_4()
	Local $TestCaseID = "10.3.4"
	$sCusMsg = 'The second file name color should is black'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)	
	SetFileUnchekedFromEditMenu()
	Send('!e')
	Common_SleepTime(1)	
	Send('t')
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_4_1()
	Local $TestCaseID = "10.4.1" 
	$sCusMsg = 'The second file name color should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	SetFileUnchekedFromEditMenu()
	Common_SleepTime(2)
	UnselectDateColumnInListView($hPMHandle)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView10_4_3()
	Local $TestCaseID = "10.4.3" 
	$sCusMsg = 'The second file name color should is blue'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	;checked in page view
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	Common_SleepTime(8)	
	SetFileUnchekedFromEditMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage)  
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_1()
	Local $TestCaseID = "11.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_2()
	Local $TestCaseID = "11.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)	
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_4()
	Local $TestCaseID = "11.1.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_8()
	Local $TestCaseID = "11.1.8"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	Send('^a')
	Common_SleepTime(1)	
	Send('!t')
	Common_SleepTime(2)	
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, WinGetHandle($sMenuCtrInfo)	)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_10()
	Local $TestCaseID = "11.1.10" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_12()
	Local $TestCaseID = "11.1.12"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(3)	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(2)	
	Send($sUnstackContextMenuHotKey)
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Local $hToolBar = ControlGetHandle($hMenu, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_1_11()
	Local $TestCaseID = "11.1.11" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(3)	
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)	
	Send($sUnstackMenuHotKey)	
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Local $hToolBar = ControlGetHandle($hMenu, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_2_1()
	Local $TestCaseID = "11.2.1" 
	$sCusMsg = 'All file is stack'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(3)	
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	Local $hToolBar = ControlGetHandle($hThumbnailView, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_2_2()
	Local $TestCaseID = "11.2.2" 
	$sCusMsg = 'Stack file order is 8/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(3)	
	MouseClick('left',319,101)   ;Click right top corner of stack file thumbnail.
	Common_SleepTime(2)
	MouseClick('left',319,101)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	Local $hToolBar = ControlGetHandle($hThumbnailView, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_2_3()
	Local $TestCaseID = "11.2.3"
	$sCusMsg = 'Stack file order is 1/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(3)	
	MouseClick('left',319,101)   ;Click right top corner of stack file thumbnail.
	Common_SleepTime(2)
	MouseClick('left',319,101)
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	Local $hToolBar = ControlGetHandle($hThumbnailView, "", $sToolbarCtrlInfo)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_2_4()
	Local $TestCaseID = "11.2.4" 
	$sCusMsg = 'All file is stack'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	ControlListView($hPMHandle, "", $hThumbnailView, "Select", 0,3)
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	SelectAllFilesFromMenu()
	Common_SleepTime(3)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	Local $hToolBar = ControlGetHandle($hThumbnailView, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_3_1()
	Local $TestCaseID = "11.3.1" 
	$sCusMsg =  'All file is stack'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(3)	
	StackFileFromMenu()
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_3_2()
	Local $TestCaseID = "11.3.2" 
	$sCusMsg = 'The image has stack file and unstack files'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)  
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,0,2)   ; Select two file.
	Send("{CTRLDOWN}")
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "right", True) 
	Common_SleepTime(1)	
	Send("{CTRLUP}")
	StackFileFroomContextMenu()
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_3_3()
	Local $TestCaseID = "11.3.3" 
	$sCusMsg = 'The image has stack file and unstack files'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Local $bIsExecuteFunction = True
	Local $array[3]
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)  
	
	;D&D file to stack
	MouseClick("left",421,167)
	Common_SleepTime(1)
	MouseDown("left")
	Common_SleepTime(1)
	MouseMove(739,174)
	Common_SleepTime(1)
	MouseUp("left")
	Common_SleepTime(1)	

	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_1()
	Local $TestCaseID = "11.4.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; Open arrange stack menu.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_2()
	Local $TestCaseID = "11.4.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; Open arrange stack menu.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_3()
	Local $TestCaseID = "11.4.3" 
	$sCusMsg = 'The stack files is 2/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; Move to next for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToNextMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_4()
	Local $TestCaseID = "11.4.4" 
	$sCusMsg = 'The stack files is 9/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; Move to last for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToLastMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_5()
	Local $TestCaseID = "11.4.5" 
	$sCusMsg = 'The stack files is 1/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	SetCurrentSelectIsLastOfStackFiles()	

	; Move to first for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToFirstMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_6()
	Local $TestCaseID = "11.4.6" 
	$sCusMsg = 'The stack files is 8/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is last of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	
	; Move to first for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToPrevMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_7()
	Local $TestCaseID = "11.4.7"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is last of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	
	; Move to first for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	

	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_8()
	Local $TestCaseID = "11.4.8" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is last of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	
	; Move to first for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	

	Local $hMenu = WinGetHandle($sMenuCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_9()
	Local $TestCaseID = "11.4.9"  
	$sCusMsg = 'The stack files is 1/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	SetCurrentSelectIsMiddleOfStackFiles()
	; Move to first for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToFirstMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_10()
	Local $TestCaseID = "11.4.10"
	$sCusMsg = 'The stack files is 7/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is middle of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	MouseClick('left',319,101) 
	Common_SleepTime(1)
	
	; Move to prev for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToPrevMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_11()
	Local $TestCaseID = "11.4.11" 
	$sCusMsg = 'The stack files is 9/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is middle of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	MouseClick('left',319,101) 
	Common_SleepTime(1)
	
	; Move to next for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToNextMenu)
	Common_SleepTime(1)	

	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_12()
	Local $TestCaseID = "11.4.12"
	$sCusMsg = 'The stack files is 9/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is middle of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	MouseClick('left',319,101) 
	Common_SleepTime(1)
	
	; Move to next for stack file.
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send($sStackMenuHotKey)
	Common_SleepTime(1)
	Send("{Right}")
	Common_SleepTime(1)	
	Send($MoveToLastMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_4_13()
	Local $TestCaseID = "11.4.13"
	$sCusMsg = 'The stack files is 9/9'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)	
	
	; set current select file is middle of the stack files.
	MouseClick('left',319,101)  
	Common_SleepTime(1)
	MouseClick('left',319,101) 
	Common_SleepTime(1)

	; Move to next for stack file.from context menu
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)
	For $i = 0 to 1
		Send($ArrangeStackContextMenu)
		Common_SleepTime(1)
	Next
	Send("{Right}")
	Common_SleepTime(1)
	Send($MoveToNextContextMenu)
	Common_SleepTime(1)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_1()
	Local $TestCaseID = "11.5.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	ControlClick($hPMHandle, "", $UnstackButtonInToolbar)   ;Unstack all files.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_2()
	Local $TestCaseID = "11.5.2"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	Send("!" & $sToolsMenuHotKey)
	Sleep(500)	
	Send($sUnstackMenuHotKey)
	Sleep(500)	
	Send($AllPagesMenu)
	Sleep(1000)		
	
	ControlClick($hPMHandle, "", $UnstackButtonInToolbar)   ;Unstack all files.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_3()
	Local $TestCaseID = "11.5.3" 
	$sCusMsg = 'The image has stack file and one unstack file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	UnstackCurrentPageFromToolsMenu()	
	ControlClick($hPMHandle, "", $UnstackButtonInToolbar)   ;Unstack all files.
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_4()
	Local $TestCaseID = "11.5.4"
	$sCusMsg = 'The image has stack file and one unstack file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	SetCurrentSelectIsMiddleOfStackFiles()
	UnstackCurrentPageFromToolsMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_5()
	Local $TestCaseID = "11.5.5"  
	$sCusMsg = 'The image has stack file and one unstack file'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	SetCurrentSelectIsLastOfStackFiles()
	UnstackCurrentPageFromToolsMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_5_6()
	Local $TestCaseID = "11.5.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 5, "left", True)  
	Common_SleepTime(1)	
	SelectAllFilesFromMenu()
	Common_SleepTime(1)	
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)   ;Stack all files.
	Common_SleepTime(2)	
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right", True) 
	Common_SleepTime(1)	
	UnstackFormContextMenu()
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_1()
	Local $TestCaseID = "11.6.1"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_2()
	Local $TestCaseID = "11.6.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(1)	
	Send("!" & $sToolsMenuHotKey)
	Common_SleepTime(1)	
	Send($sUnstackMenuHotKey)	
	Common_SleepTime(2)	
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_4()
	Local $TestCaseID = "11.6.4"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_7()
	Local $TestCaseID = "11.6.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $hThumbnailView, "Select" ,2 ,3)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(1)
	Local $hToolBar = ControlGetHandle($hPMHandle, "", $sToolbarCtrlInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hToolBar)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_8()
	Local $TestCaseID = "11.6.8" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)  
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $hThumbnailView, "Select" ,2 ,3)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(1)
	OpenToolsMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView11_6_9()
	Local $TestCaseID = "11.6.9" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $hThumbnailView, "Select" ,2 ,3)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True)
	Common_SleepTime(2)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_1()
	Local $TestCaseID = "12.1.1"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_2()
	Local $TestCaseID = "12.1.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	OpenToolsMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_4()
	Local $TestCaseID = "12.1.4" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(2)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_5()
	Local $TestCaseID = "12.1.5" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(2)
	OpenToolsMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_6()
	Local $TestCaseID = "12.1.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	Common_SleepTime(2)
	Send('w')
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_7()
	Local $TestCaseID = "12.1.7" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(2)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)	
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_8()
	Local $TestCaseID = "12.1.8" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(2)
	OpenToolsMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_9()
	Local $TestCaseID = "12.1.9" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True)
	Common_SleepTime(2)
	Send('w')
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_10()
	Local $TestCaseID = "12.1.10" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3)
	Common_SleepTime(1)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_13()
	Local $TestCaseID = "12.1.13"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3)
	Common_SleepTime(1)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_14()
	Local $TestCaseID = "12.1.14"  
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3)
	Common_SleepTime(1)
	OpenToolsMenu()
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_15()
	Local $TestCaseID = "12.1.15" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	MouseDown('left')	
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	MouseUp('left')	
	Common_SleepTime(1)
	Send('w')
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_16()
	Local $TestCaseID = "12.1.16" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,4)
	Common_SleepTime(1)
	Local $hBtn = ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hBtn)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_17()
	Local $TestCaseID = "12.1.17"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,4)
	Common_SleepTime(1)
	OpenToolsMenu()
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_1_18()
	Local $TestCaseID = "12.1.18"
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)	
	MouseDown('left')	
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,4)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "right", True)
	MouseUp('left')	
	Common_SleepTime(1)
	Send('w')
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hMenu)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_2_1()
	Local $TestCaseID = "12.2.1" 
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)
	WaitOCRDlgClose(3)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_2_2()
	Local $TestCaseID = "12.2.2" 
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2) 
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)
	WaitOCRDlgClose(3)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_2_3()
	Local $TestCaseID = "12.2.3" 
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2) 
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)
	WaitOCRDlgClose(3)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_2_4()
	Local $TestCaseID = "12.2.4"
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 2, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,2,3) 
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(2)
	ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)
	WaitOCRDlgClose(4)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_3_1()
	Local $TestCaseID = "12.3.1" 
	$sCusMsg = 'The jpg file perform OCR'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1,2) 
	Common_SleepTime(1)
	;ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	;Common_SleepTime(2)
	PerformOCRFromToolsMenu()
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & '_1.jpg', WinGetHandle(""))
	Send('{ENTER}')
	WaitOCRDlgClose(3)
	;ControlClick($hPMHandle, "", $UnstackButtonInToolbar)   ;Unstack all files.
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & '_2.jpg', $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID & '_1.jpg', $sCorrectResultPath & $TestCaseID & '_1.jpg')  			
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID & '_2.jpg', $sCorrectResultPath & $TestCaseID & '_2.jpg')  
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_3_2()
	Local $TestCaseID = "12.3.2"
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	Common_SleepTime(1)
	Send('w')
	Common_SleepTime(1)
	Send('o')
	WaitOCRDlgClose(3)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)		
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_3_3()
	Local $TestCaseID = "12.3.3" 
	$sCusMsg = 'The jpg file will do OCR'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)		
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	Common_SleepTime(1)
	PerformOCRFromToolsMenu()
	WaitOCRDlgClose(3)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_4_1()
	Local $TestCaseID = "12.4.1" 
	$sCusMsg = 'The file JPG will performed OCR'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)	
	Common_SleepTime(2)
	UnselectDateColumnInListView($hPMHandle)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1,2) 
	Common_SleepTime(1)
	Common_SleepTime(2)
	PerformOCRFromToolsMenu()
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & '_1.jpg', WinGetHandle(""))
	Send('{ENTER}')
	WaitOCRDlgClose(3)
	Sleep(10000)
	ControlClick($hPMHandle, "", $sSwicthToThumbnailViewButtonCtrInfo)	
	Common_SleepTime(1)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & '_2.jpg', WinGetHandle(""))
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID & '_1.jpg', $sCorrectResultPath & $TestCaseID & '_1.jpg')  			
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID & '_2.jpg', $sCorrectResultPath & $TestCaseID & '_2.jpg')  
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView12_4_2()
	Local $TestCaseID = "12.4.2" 
	$sCusMsg = 'The image is OCR view'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $SwicthToTileViewButtonInToolbar)
	Common_SleepTime(1)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "left", True)
	Common_SleepTime(1)
	ControlClick($hPMHandle, "", $sOCRButtonInToolbarCtrInfo)
	WaitOCRDlgClose(3)
	Sleep(10000)
	Local $hOCRView = ControlGetHandle($hPMHandle,'',$OCRView)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hOCRView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_1_1()
	Local $TestCaseID = "13.1.1"
	$sCusMsg = 'The uimage is thumbail'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_2()
	Local $TestCaseID = "13.2.2" 
	$sCusMsg = 'The image is thumbnial, file sort By Type, By Ascending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Sort("By Ascending")
	Sort("By Type")
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_3()
	Local $TestCaseID = "13.2.3"
	$sCusMsg = 'The image is thumbnial, file sort By Size, By Ascending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Sort("By Ascending")
	Sort("By Size")
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_4()
	Local $TestCaseID = "13.2.4"
	$sCusMsg = 'The image is thumbnial, file sort By Author, By Descending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Sort("By Descending")
	Sort("By Author")
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_5()
	Local $TestCaseID = "13.2.5" 
	$sCusMsg = 'The image is thumbnial, file sort By Date, By Descending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Sort("By Descending")
	Sort("By Date")
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_6()
	Local $TestCaseID = "13.2.6"
	$sCusMsg = 'The image is thumbnial, file sort By Keyword, By Descending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Sort("By Descending")
	Sort("By Keyword")
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_7()
	Local $TestCaseID = "13.2.7" 
	$sCusMsg = 'The image is thumbnial, file sort By Name, By Ascending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	FileCopy($sSpecialFolderPath & '*.*', $sFunctionFolderPath, 1) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 1, "right", True)
	RenameByContextMenu('000')
	Sort("By Ascending")
	Sort("By Name")
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_8()
	Local $TestCaseID = "13.2.8"
	$sCusMsg = 'The image is list view, file sort By Type, By Descending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 4, "right", True)
	Sort("By Descending")
	Sort("By Type")
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)
	UnselectDateColumnInListView($hPMHandle)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_9()
	Local $TestCaseID = "13.2.9"
	$sCusMsg = 'The image is thumbnial, file sort By Author, By Ascending'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Sort("By Ascending")
	Sort("By Author")
	Common_Close_PM($hPMHandle)
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_2_10()
	Local $TestCaseID = "13.2.10" 
	$sCusMsg = 'The image is thumbnial, file sort By Date, By Ascending and has stack files'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	_GUICtrlListView_ClickItem($hThumbnailView, 4, "left", True)
	Sleep(1500)
	ControlListView($hPMHandle, "", $sThumbnailViewCtrInfo, "Select" ,1,2) 
	ControlClick($hPMHandle, "", $sStackButtonInToolbarCtrInfo)
	Common_SleepTime(1)	
	Sort("By Ascending")
	Sort("By Date")
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_1()
	Local $TestCaseID = "13.5.1"
	$sCusMsg = 'The image is list view, file sort By Size, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	Sort("By Ascending")
	Sort("By Size")
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_3()
	Local $TestCaseID = "13.5.3"
	$sCusMsg = 'The image is list view, file sort By File Name, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	MouseClick('left',308,90)   ;Click fine name cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_4()
	Local $TestCaseID = "13.5.4" 
	$sCusMsg = 'The image is list view, file sort By File Name, By Descending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	MouseClick('left',308,90)   ;Click fine name cloumn once.
	Common_SleepTime(1)	
	MouseClick('left',308,90)   ;Click fine name cloumn again.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_5()
	Local $TestCaseID = "13.5.5" 
	$sCusMsg = 'The image is list view, file sort By type, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	MouseClick('left',454,90)   ;Click fine type cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_6()
	Local $TestCaseID = "13.5.6" 
	$sCusMsg = 'The image is list view, file sort By size, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	MouseClick('left',592,90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_9()
	Local $TestCaseID = "13.5.9" 
	$sCusMsg = 'The image is list view, file sort By Image Information, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	AddDisplayCoulmnInListView('Image Information')
	MouseClick('left',677,90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_10()
	Local $TestCaseID = "13.5.10" 
	$sCusMsg = 'The image is list view, file sort By Annotations, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView_($hPMHandle)
	AddDisplayCoulmnInListView('Annotations')
	MouseClick('left',985, 90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_11()
	Local $TestCaseID = "13.5.11" 
	$sCusMsg = 'The image is list view, file sort By Keywords, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	AddDisplayCoulmnInListView('Keywords')
	MouseClick('left',824,90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_12()
	Local $TestCaseID = "13.5.12" 
	$sCusMsg = 'The image is list view, file sort By Memory, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	AddDisplayCoulmnInListView('Memory')
	MouseClick('left',824,90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView13_5_13()
	Local $TestCaseID = "13.5.13"
	$sCusMsg = 'The image is list view, file sort By Author, By Ascending  '
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(1)	
	UnselectDateColumnInListView($hPMHandle)
	AddDisplayCoulmnInListView('Author')
	MouseClick('left',824,90)   ;Click fine size cloumn once.
	Common_SleepTime(1)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_1_1()
	Local $TestCaseID = "14.1.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	OpenThumbnailSizeMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage,$hMenu) 
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $TestCaseID & $sJPG_Format, $sCorrectResultPath & $TestCaseID & $sJPG_Format)  			
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_2_2()
	Local $TestCaseID = "14.2.2" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	For $i = 0 to 1
		ControlClick($hPMHandle, '' , $ZoomInButton)   ;Click Zoom in button 2times.
		Common_SleepTime(1)	
	Next
	OpenThumbnailSizeMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg",$hMenu) 
	Send('{ESC}')   ;Close meun.
	Common_SleepTime(1)	
	Send('{ESC}')   ;Close meun.
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_2.jpg", $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID & "_1.jpg", $sCorrectResultPath & $TestCaseID & "_1.jpg")  		
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID & "_2.jpg", $sCorrectResultPath & $TestCaseID & "_2.jpg") 	
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_2_3()
	Local $TestCaseID = "14.2.3" 
	$sCusMsg = 'The thumbnial file size is normal'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	For $i = 0 to 1
		ControlClick($hPMHandle, '' , $ZoomInButton)   ;Click Zoom in button 2times.
		Common_SleepTime(1)	
	Next
	OpenThumbnailSizeMenu()
	Send($NormalMenu)
	Common_SleepTime(1)
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath  & $sCaptureImage)  		
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_2_6()
	Local $TestCaseID = "14.2.6" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	For $i = 0 to 1
		ControlClick($hPMHandle, '' , $ZoomOutButton)   ;Click Zoom out button 2times.
		Common_SleepTime(1)	
	Next
	OpenThumbnailSizeMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg",$hMenu) 
	Send('{ESC}')   ;Close meun.
	Common_SleepTime(1)	
	Send('{ESC}')   ;Close meun.
	Common_Close_PM($hPMHandle) 
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_2.jpg", $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID & "_1.jpg", $sCorrectResultPath & $TestCaseID & "_1.jpg")  		
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID & "_2.jpg", $sCorrectResultPath & $TestCaseID & "_2.jpg") 	
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_3_1()
	Local $TestCaseID = "14.3.1"
	$sCusMsg = 'The thumbnail file size is large'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	OpenThumbnailSizeMenu()
	ThumbnialSize('Larger')
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath  & $sCaptureImage)  		
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_3_2()
	Local $TestCaseID = "14.3.2" 
	$sCusMsg = 'The thumbnail file size is large'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	OpenThumbnailSizeMenu()
	ThumbnialSize('Large')
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath  & $sCaptureImage)  		
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_3_3()
	Local $TestCaseID = "14.3.3" 
	$sCusMsg = 'The thumbnail file size is small'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	OpenThumbnailSizeMenu()
	ThumbnialSize('Samll')
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath  & $sCaptureImage)  		
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_3_4()
	Local $TestCaseID = "14.3.4" 
	$sCusMsg = 'The thumbnail file size is smaller'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	OpenThumbnailSizeMenu()
	ThumbnialSize('Samller')
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$sCaptureImage, $hThumbnailView)
	Local $bCompareFile = Common_CompareFile($sTestResultPath & $sCaptureImage, $sCorrectResultPath  & $sCaptureImage)  		
	If $bCompareFile Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc

Func ThumbnailView14_5_1()
	Local $TestCaseID = "14.5.1" 
	$sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sThumbanilViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sThumbanilViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForThumbnail()  
	Local $hPMHandle = Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle, $sSectionNameThumbanil)
	Common_SwitchToFEOrSESampleFolder($hPMHandle, $sPMVersion, 9, $hPMHandle)
	Local $hThumbnailView = ControlGetHandle($hPMHandle, "", $sThumbnailViewCtrInfo)
	ControlClick($hPMHandle, "", $sSwicthToListViewButtonCtrInfo)
	Common_SleepTime(2)	
	UnselectDateColumnInListView($hPMHandle)
	OpenThumbnailSizeMenu()
	Local $hMenu = WinGetHandle($sMenuCtrInfo)	
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_1.jpg",$hMenu) 
	Send('{ESC}')   ;Close meun.
	Common_SleepTime(1)	
	Send('{ESC}')   ;Close meun.
	Common_ScreenCaprureWindow($sTestResultPath,$TestCaseID & "_2.jpg",  $hThumbnailView)
	Local $bCompareFile_1 = Common_CompareFile($sTestResultPath & $TestCaseID & "_1.jpg", $sCorrectResultPath & $TestCaseID & "_1.jpg")  		
	Local $bCompareFile_2 = Common_CompareFile($sTestResultPath & $TestCaseID & "_2.jpg", $sCorrectResultPath & $TestCaseID & "_2.jpg") 	
	If $bCompareFile_1 And $bCompareFile_2 Then	
		Common_WriteLog($sPass, $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	EndIf
	Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sThumbanilViewFunctionName,$bReproduceTestCase)   
	Common_Close_PM($hPMHandle) 
	Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
	Return 0 
EndFunc
